<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!--
    eArea - a simple web-based text editor
    Copyright (C) 2006  Oliver Moran

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-->

<html>
<head>
<title>Blank eArea Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<script language="javascript">

	function getQueryValue(field) {
	  var queryString = window.location.search.substring(1);
	  var queryPairs = queryString.split("&");
	  for (var i = 0; i < queryPairs.length; i++) {
		var thisPair = queryPairs[i].split("=");
		if (thisPair[0] == field) {
		  return thisPair[1];
		}
	  } 
	  return false;
	}

	myStyle  = unescape(getQueryValue("style"));
	document.write('<body contenteditable onLoad="document.designMode = \'on\';" style = "' + myStyle + '">');
	document.write(window.parent.$('descr').value);
</script>

</body>
</html>
